package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.DiscussDao;
import com.zhiyou100.model.Discuss;
@Service
public class DiscussServiceImpl implements DiscussService{
@Autowired
private DiscussDao discussDao;
	public ArrayList<Discuss> findAll(int projectId) {
		ArrayList<Discuss> al = discussDao.findAll(projectId);
		
		return al;
	}

	public ArrayList<Discuss> findUpdate(int progressId) {
		ArrayList<Discuss> al = discussDao.findUpdate(progressId);
		return al;
	}

	public void add(Discuss discuss) {
		discussDao.add(discuss);
	}

	public void addUpdate(Discuss discuss) {
		discussDao.addUpdate(discuss);
	}

}
